package main

import "fmt"

func main() {
	a := 1
	b := 2

	defer func() {
		fmt.Printf("defer annoy %d %d \n", a, b)
	}()
	//外部变量和参数,优先取参数
	defer func(a, b int) {
		fmt.Printf("defer annoy %d %d \n", a, b)
	}(1, 2)

	a = 11
	b = 22
	fmt.Printf("%d %d \n", a, b)

}
